package osami.communication.translate;

import osami.communication.OsamiIdentifier;

public class RemoteCallResponseMessage extends Message
{
	protected Object iReturnValue = null;
	
	
	public RemoteCallResponseMessage( Object aReturnValue )
	{
		iReturnValue = aReturnValue;
	}
	
	
	public RemoteCallResponseMessage( RemoteCallMessage aMessage )
	{
		iCallNumber = aMessage.getCallNumber();
	}
	
	
	public OsamiIdentifier getDestination()
	{
		return null;
	}

	
	public int getType()
	{
		return Message.REMOTE_CALL_RESPONSE;
	}

	
	public OsamiIdentifier getSender()
	{
		return null;
	}
	
	
	public boolean isRequest()
	{
		return false;
	}
	
	
	public void setReturnValue( Object aReturnValue )
	{
		iReturnValue = aReturnValue;
	}
	
	
	public Object getReturnValue()
	{
		return iReturnValue;
	}
}
